<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\fenhuicat\Fenhuicat */

$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Fenhuicats'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<?php $this->beginBlock('siderbar'); ?>
<?= $this->render('//layouts/fenhui-menu') ?>
<?php $this->endBlock(); ?>
<div class="fenhuicat-view">



    <p>
        <?= Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a(Yii::t('app', 'Delete'), ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <table id="w" class="table table-striped table-bordered detail-view"><tbody><tr><th>ID</th><td><?=$data['id']?></td></tr>
        <tr><th>栏目名称</th><td><?=$data['name']?></td></tr>
        <tr><th>导航显示</th><td><?php if($data['status'] ==1){ ?>是<?php }else{ ?> <span class="not-set">否</span><?php } ?></td></tr>
        <tr><th>栏目模板</th><td>
                <?php if(empty($data['type'])){ ?>  <span class="not-set">(未设置)</span> <?php }else{ ?><?=$data['type']?>  <?php } ?>
            </td></tr>
        <tr><th>内容模板</th><td>
                <?php if(empty($data['ctype'])){ ?>  <span class="not-set">(未设置)</span> <?php }else{ ?><?=$data['ctype']?>  <?php } ?>
            </td></tr>
        <tr><th>外部链接</th><td>
                <?php if(empty($data['url'])){ ?>  <span class="not-set">(未设置)</span> <?php }else{ ?><?=$data['url']?>  <?php } ?>
            </td></tr>
        <tr><th>排序</th><td>
                <?php if(empty($data['sort'])){ ?>  <span class="not-set">(未设置)</span> <?php }else{ ?><?=$data['sort']?>  <?php } ?>
            </td></tr>
        <tr><th>关键词</th><td>
                <?php if(empty($data['seo_keywords'])){ ?>  <span class="not-set">(未设置)</span> <?php }else{ ?><?=$data['seo_keywords']?>  <?php } ?>
            </td></tr>
        <tr><th>描述语</th><td>
                <?php if(empty($data['seo_contents'])){ ?>  <span class="not-set">(未设置)</span> <?php }else{ ?><?=$data['seo_contents']?>  <?php } ?>
            </td></tr>
        <tr><th>父栏目ID</th><td><?=$data['parent_id']?></td></tr>
        <tr><th>分会名称</th><td><?=$data['fname']?></td></tr></tbody>
    </table>

</div>
